<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ include file="/WEB-INF/jsp/header.jsp" %>

<script language="JavaScript"> 
	document.getElementById('companies').style.display = 'block';
</script>


<%@ include file="/WEB-INF/jsp/partnerTools.jsp" %>


<h2> Company simulator </h2>

<table class="searchTable">
	<form:form method="POST" commandName="companyFetch">
	
	<tr>
		<td>
			Company id:
		</td>
		<td>
			<form:input path="companyId"/>
		</td>
	</tr>
	
	<tr>
		<td>
			Set worker's wellness to 100:
		</td>
		<td>
			<form:checkbox path="maxWellness"/>
		</td>
	</tr>
	
	<tr>
		<td>
			Read salaries from job market*:<br/>
			* - if you uncheck this, all salaries will be set to 0
		</td>
		<td>
			<form:checkbox path="readSalaries"/>
		</td>
	</tr>

	<tr>
		<td colspan="2">
			<center><input type="submit" value="Get company!"></center>
		</td>
	</tr>
	</form:form>
</table>
<br/>


<%@ include file="/WEB-INF/jsp/commercials.jsp" %>


<c:if test="${company != null}">

	<%@ include file="/WEB-INF/jsp/companyCalculatorComponent.jsp" %>

</c:if>







<%@ include file="/WEB-INF/jsp/bottom.jsp" %>

